package com.binfenhulian.chinaenergy.ces.manage.core.db.dao.def;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by wanghjbuf on 2018/3/15.
 */
@Mapper
@Repository
public interface ContentDefDAO {

    /**
     * 种子记录查询
     * @param paramMap
     * @return
     */
    public List<Object> query(Map<String, Object> paramMap);

    /**
     * 内容详情查询
     * @param recordNo
     * @return
     */
    public Map<String, Object> queryDetails(@Param(value = "recordNo") String recordNo);

    /**
     * 使用次数增加
     * @param recordNo
     * @return
     */
    public int useCountAdd(@Param(value = "recordNo") String recordNo);

    /**
     * 发布次数增加
     * @param recordNo
     * @return
     */
    public int publishCountAdd(@Param(value = "recordNo") String recordNo);
}
